package com.shanghai.controller;

import com.shanghai.dao.EmployeeDao;
import com.shanghai.entity.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class EmployeeController {
    @Autowired
    private EmployeeDao employeeMapper;

  /*  @RequestMapping("showAll")
    public List<Employee> showAll(){
        return employeeMapper.selectList(null);
    }
*/
    @RequestMapping("selectAll")
    public List<Employee> selectAll(){
        return employeeMapper.selectAll();
    }
}
